/* Layout */
import Layout from '@/layout'

const companyModuleRouter = {
  path: '/smsk',
  component: Layout,
  name: 'SmskModule',
  redirect: 'noRedirect',
  meta: {
    title: '上门收款信息管理',
    icon: 'smsk',
    permissions: ['/smsk/admin']
  },
  children: [
    {
      path: '/smsk/admin/companyBase',
      name: 'SmskCompanyBase',
      redirect: 'noRedirect',
      component: () => import('@/views/empty'),
      meta: {
        title: '企业信息管理',
        icon: 'dictionary',
        permissions: ['/smsk/admin/companyBase']
      },
      children: [
        {
          path: '/smsk/admin/company',
          name: 'SmskCompany',
          component: () => import('@/views/smsk/company'),
          meta: {
            title: '企业基本信息管理',
            icon: 'company',
            permissions: ['/smsk/admin/company']
          }
        },
        {
          path: '/smsk/admin/station',
          name: 'SmskStation',
          component: () => import('@/views/smsk/station'),
          meta: {
            title: '站点信息管理',
            icon: 'station',
            permissions: ['/smsk/admin/station']
          }
        },
        {
          path: '/smsk/admin/qrcode',
          name: 'SmskQrcode',
          component: () => import('@/views/smsk/qrcode'),
          meta: {
            title: '二维码信息管理',
            icon: 'qrcode',
            permissions: ['/smsk/admin/qrcode']
          }
        },
        {
          path: '/smsk/admin/staff',
          name: 'SmskStaff',
          component: () => import('@/views/smsk/staffInfo'),
          meta: {
            title: '员工信息管理',
            icon: 'authUser',
            permissions: ['/smsk/admin/staff']
          }
        },
        {
          path: '/smsk/admin/fund',
          name: 'SmskFund',
          component: () => import('@/views/smsk/fundSource'),
          meta: {
            title: '款项来源管理',
            icon: 'funds',
            permissions: ['/smsk/admin/fund']
          }
        },
        {
          path: '/smsk/admin/account',
          name: 'SmskAccountInfo',
          component: () => import('@/views/smsk/accountInfo'),
          meta: {
            title: '账户信息管理',
            icon: 'account',
            permissions: ['/smsk/admin/account']
          }
        }
      ]
    },
    {
      path: '/smsk/admin/bagsinfo',
      name: 'SmskBagsInfo',
      component: () => import('@/views/smsk/bagsInfo'),
      meta: {
        title: '箱包信息管理',
        icon: 'bags',
        permissions: ['/smsk/admin/bagsinfo']
      }
    },
    {
      path: '/smsk/admin/wechat',
      name: 'SmskWechat',
      component: () => import('@/views/smsk/wechatUser'),
      meta: {
        title: '微信小程序用户管理',
        icon: 'authUser',
        permissions: ['/smsk/admin/wechat']
      }
    },
    {
      path: '/smsk/admin/stafflog',
      name: 'SmskStaffLog',
      component: () => import('@/views/smsk/staffOpLog'),
      meta: {
        title: '员工操作日志管理',
        icon: 'log',
        permissions: ['/smsk/admin/stafflog']
      }
    },
	{
	  path: '/smsk/admin/privacyProtocol',
	  name: 'SmskStaffLog',
	  component: () => import('@/views/privacyProtocol/index'),
	  meta: {
	    title: '隐私协议配置',
	    icon: 'log',
	    permissions: ['/smsk/admin/privacyProtocol']
	  }
	}
  ]
}

export default companyModuleRouter
